package com.hdoit.apollo.web.shop.modelconfig;

import com.tennetcn.web.component.attribute.DisplayNameAttribute;
import com.tennetcn.web.component.attribute.RequiredAttribute;
import com.tennetcn.web.component.attribute.base.ModelMetadataAttributeConfiguration;

/**
 * @author      humaoshu
 * @email       
 * @createtime  2018年05月02日 16:07:01
 * @comment
 */
public class AddressConfig extends ModelMetadataAttributeConfiguration{
    public AddressConfig(){
        this.setProperty("customerId")
            .hasAttribute(new DisplayNameAttribute("客户"));

        this.setProperty("address")
            .hasAttribute(new DisplayNameAttribute("地址"))
             .hasAttribute(new RequiredAttribute("必填"));

        this.setProperty("shopId")
            .hasAttribute(new DisplayNameAttribute("门店id"));

        this.setProperty("comment")
            .hasAttribute(new DisplayNameAttribute("备注"));

    }
}